home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / ada / gnat1792.zip / gnat179b / t-adainc / s-comexc.adb < prev    next >
Text File  |  1994-05-19  |  4KB  |  98 lines

  1. -----------------------------------------------------------------------------
  2. --                                                                          --
  3. --                 GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS               --
  4. --                                                                          --
  5. --            S Y S T E M . C O M P I L E R _ E X C E P T I O N S           --
  6. --                                                                          --
  7. --                                  B o d y                                 --
  8. --                                                                          --
  9. --                             $Revision: 1.7 $                             --
  10. --                                                                          --
  11. --           Copyright (c) 1991,1992,1993, FSU, All Rights Reserved         --
  12. --                                                                          --
  13. --  GNARL is free software; you can redistribute it and/or modify it  under --
  14. --  terms  of  the  GNU  Library General Public License as published by the --
  15. --  Free Software Foundation; either version 2, or  (at  your  option)  any --
  16. --  later  version.   GNARL is distributed in the hope that it will be use- --
  17. --  ful, but but WITHOUT ANY WARRANTY; without even the implied warranty of --
  18. --  MERCHANTABILITY  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Gen- --
  19. --  eral Library Public License for more details.  You should have received --
  20. --  a  copy of the GNU Library General Public License along with GNARL; see --
  21. --  file COPYING. If not, write to the Free Software Foundation,  675  Mass --
  22. --  Ave, Cambridge, MA 02139, USA.                                          --
  23. --                                                                          --
  24. ------------------------------------------------------------------------------
  25.  
  26.  
  27. with System.Error_Reporting;
  28. --  Used for,  Error_Reporting.Unimplemented_Operation
  29. --             Error_Reporting.Assert
  30.  
  31. with System.Task_Primitives;
  32. --  Used for,  Task_Primitives.Machine_Exceptions;
  33. --             Task_Primitives.Error_Information;
  34.  
  35. with System.Tasking;
  36. --  Used for,  Tasking.Self
  37. --             Tasking.Pre_Call_State
  38. --             Tasking.Null_Exception
  39. --             Tasking.Exception_ID
  40. --             Tasking.Numeric_Error_ID
  41. --             Tasking.Constraint_Error_ID
  42. --             Tasking.Storage_Error_ID
  43.  
  44. package body System.Compiler_Exceptions is
  45.  
  46.    procedure Unimplemented renames
  47.       System.Error_Reporting.Unimplemented_Operation;
  48.  
  49.    ---------------------
  50.    -- Raise_Exception --
  51.    ---------------------
  52.  
  53.    procedure Raise_Exception (E : Tasking.Exception_ID) is
  54.    begin
  55.       if E /= Tasking.Null_Exception then
  56.          Unimplemented;
  57.       end if;
  58.    end Raise_Exception;
  59.  
  60.    ----------------------
  61.    -- Notify_Exception --
  62.    ----------------------
  63.  
  64.  
  65.    procedure Notify_Exception
  66.      (Which              : Task_Primitives.Machine_Exceptions;
  67.       Info               :  Task_Primitives.Error_Information;
  68.       Modified_Registers : Tasking.Pre_Call_State)
  69.    is
  70.    begin
  71.       Unimplemented;
  72.    end Notify_Exception;
  73.  
  74.    -----------------------
  75.    -- Current_Exception --
  76.    -----------------------
  77.  
  78.    function Current_Exception return Tasking.Exception_ID is
  79.    begin
  80.       Unimplemented;
  81.       return Tasking.Null_Exception;
  82.    end Current_Exception;
  83.  
  84.    -----------
  85.    -- Image --
  86.    -----------
  87.  
  88.    function Image
  89.      (E    : Tasking.Exception_ID)
  90.       return Exception_ID_String
  91.    is
  92.    begin
  93.       Unimplemented;
  94.       return "Not Implemented*";
  95.    end Image;
  96.  
  97. end System.Compiler_Exceptions;
  98.